<template>
  <div class="mobile-product-1">
    <img v-slide-plus :src="info.image2" />
    <div class="content-box">
      <Title
        v-slide-up
        title="PRODUCTS & SERVICES"
        color="linear-gradient(90deg, #4580dd 0%, rgba(0, 0, 0, 0) 100%)"
        size="16"
        bold="700"
        :sub-title="info.name"
        sub-color="#0e0b31"
        sub-size="24"
        sub-bold="700"
        gap="10"
      />
      <div v-slide-up class="content-desc" v-html="info.introduce" />
      <div class="f f-ac f-jc">
        <div v-slide-plus class="btn-box" @click="handleContact">立即咨询</div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  info: {
    type: Object,
    default: () => {},
  },
});
const emit = defineEmits(["contact"]);

// 立即咨询
const handleContact = () => {
  emit("contact", `产品服务：${props.info.name}`);
};
</script>
<style lang="scss" scoped>
.mobile-product-1 {
  width: 100%;
  min-height: 31.25rem;
  padding: 6.25rem 1.25rem 1.25rem;
  box-sizing: border-box;
  background: url("../../../../assets/product/banner_bg_1.png") no-repeat;
  background-size: 100% 100%;
  img {
    width: 100%;
    height: auto;
    box-shadow: 0 0 0.625rem #ababab;
    box-sizing: border-box;
  }
  .content-box {
    width: 100%;
    padding-top: 1.25rem;
    .content-desc {
      font-size: 1rem;
      font-weight: 400;
      letter-spacing: 0.0187rem;
      line-height: 1.6rem;
      color: #878599;
      margin: 1.875rem 0;
    }
    .btn-box {
      width: 10.25rem;
      height: 3.375rem;
      font-size: 0.875rem;
      font-weight: 700;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #4580dd;
      &:active {
        background-color: #3a6dc0;
      }
    }
  }
}
</style>
